home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / X-Ray / Includes / Layers / Layers.h
Encoding:
Text File  |  1999-06-07  |  467 b   |  15 lines  |  [TEXT/CWIE]

  1. // Layers.h
  2. // This very well might be copyrighted by Apple Computer, Inc. but it is undocumented so I have no idea.
  3. // I only included the parts that are necessary for X-Ray because the rest is quite voodoo (as if this isn't)
  4.  
  5. #ifndef __LAYERS__
  6. #define __LAYERS__
  7.  
  8. typedef WindowRecord LayerRecord;
  9. typedef WindowPeek LayerPtr;
  10.  
  11. #define GetFirstLayerWindow(aLayer) ((WindowPtr)aLayer->windowPic)
  12. #define GetCurLayer() (*(LayerPtr*)0x00000A90)
  13.  
  14. #endif // __LAYERS__
  15.